<div id="content">
    <?php
    include("./PDO/PdoCombattant.php"); //On inclut les fonctions PDO (create / update etc...)
    include("./class/Combattant.php"); //On inclut les fonctions PDO (create / update etc...)

    $combattant = new PdoCombattant();
    $combattant = $combattant->readAll();

    include("./PDO/PdoTypeResultat.php"); //On inclut les fonctions PDO (create / update etc...)
    include("./class/TypeResultat.php"); //On inclut les fonctions PDO (create / update etc...)

    $typeresultat = new PdoTypeResultat();
    $typeresultat = $typeresultat->readAll();

    include("./PDO/PdoCombat.php"); //On inclut les fonctions PDO (create / update etc...)
    include("./class/Combat.php"); //On inclut les fonctions PDO (create / update etc...)

    $combat = new PdoCombat();
    $combat = $combat->readAll();
    ?>
    <form id="validate_form" action="index.php?route=participer&action=traitement_ajout" method="post">

        <label>Résultat</label>
        <input name="RESULTAT" id="NomLieu">
        <label>Combattant</label>
        <select name="IDCOMBATTANT" size="1">
            <?php
            foreach ($combattant as $uncombattant) {
                echo '<option value="' . $uncombattant["IDCOMBATTANT"] . '">' . $uncombattant["NOMCOMBATTANT"] . '' . $uncombattant["PRENOMCOMBATTANT"] . '' . $uncombattant["SURNOMCOMBATTANT"] . '</option>';
            }
            ?>
        </select>
        <br/>
        <label>Type Resultat</label>
        <select name="IDTYPERESULTAT" size="1">
            <?php
            foreach ($typeresultat as $untyperesultat) {
                echo '<option value="' . $untyperesultat["IDTYPERESULTAT"] . '">' . $untyperesultat["LIBELLETYPERESULTAT"] . '</option>';
            }
            ?>
        </select>
        <br/>
        <label>Combat</label>
        <select name="IDCOMBAT" size="1">
            <?php
            foreach ($combat as $uncombat) {
                echo '<option value="' . $uncombat["IDCOMBAT"] . '">' . $uncombat["TITRECOMBAT"] . '</option>';
            }
            ?>
        </select>

        <input type="submit" id="valider" />
    </form>
</div>